package Chapter7;
//150页程序7.6 使用标准输入流+读者+读者缓冲区

import java.io.*;

class CharInput {
    public static void main(String[] args) throws IOException {
        String s;
        InputStreamReader ir;
        BufferedReader in;
        ir = new InputStreamReader(System.in); //System.in表示从键盘输入，是标准输入流，串接到InputStreamReader
        in = new BufferedReader(ir); //又将其串接到BufferedReader
        if ((s = in.readLine()) != null) {
            System.out.println("Read s：" + s);
            ir.close();//关闭字符流
        }
    }
}
